#include <iostream>
#include <cstdlib>
#include <time.h>

using namespace std;

void arrayCreate(char*, int);

int main(){
	time_t seconds;
	time(&seconds);
	srand((unsigned int) seconds);

	//creates an array
	char testArray[100];
	//creates a pointer to that array
	char *arrayPointer = &testArray[0];

	//calls the array function
	arrayCreate(arrayPointer, 100);
	
	for(int index = 0; index < 100; index++){
		cout << testArray[index] << "\n";
	}

}

void arrayCreate(char *arrayPointer, int arrayLength){
	for(int index = 0; index < arrayLength; index++){
		arrayPointer[index] = (char)((rand()%26)+65);
	}

}